package br.inf.solutions.apresentacoes.ssp.model.enums;

public enum TypeBarrel {
	MM("mm"), POL("pol");

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private TypeBarrel(String name) {
		this.name = name;
	}
	
	public static TypeBarrel getTypeBarrelById(Integer id){
		return TypeBarrel.values()[id];
	}
	
	@Override
	public String toString() {
		return this.name;
	}
}